package cn.com.springboot.service.impl;

import cn.com.springboot.entity.Client;
import cn.com.springboot.mapper.ClientMapper;
import cn.com.springboot.service.ClientService;
import com.sun.org.apache.regexp.internal.RE;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ClientImpl implements ClientService {
    @Resource
    private ClientMapper clientMapper;

    @Override
    public Client login(Client client){
        return clientMapper.login(client);
    }

    @Override
    public int add(Client client){
        return clientMapper.add(client);
    }

    @Override
    public Client query(int cid) {
        return clientMapper.query(cid);
    }

    @Override
    public int updateClient(Client client){
        return clientMapper.updateClient(client);
    }

    @Override
    public List<Client> selectAll(){
        return clientMapper.selectAll();
    }

    @Override
    public int delete(int cid){
        return clientMapper.delete(cid);
    }
}
